package tech.aistar.prj.mapper;

import org.apache.ibatis.annotations.Select;
import tech.aistar.prj.model.pojo.User;

import java.util.List;

/**
 * 本类用来演示: User - dao层 - Mapper层
 *
 * @author: success
 * @date: 2022/3/22 8:42 上午
 */
public interface UserMapper {

    @Select("select * from jdbc_user where username=#{value}")
    User findByUserName(String username);

    @Select("select * from jdbc_user")
    List<User> findAll();
    @Select("select * from jdbc_user where id=#{value}")
    User findById(Integer id);
}